package com.example.deal;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients //开启FeignClient注解
@EnableCircuitBreaker //开启Hystrix熔断机制
public class MicroserviceDealBrokerHystrixWithFeignApplication {

	public static void main(String[] args) {
		SpringApplication.run(MicroserviceDealBrokerHystrixWithFeignApplication.class,
				args);
	}
}
